home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / zkuste / mazda / mazIn311.dxr / Internal_4_Video Control.ls < prev    next >
Encoding:
Text File  |  1998-05-06  |  1.1 KB  |  29 lines

  1. property videoSprite, VideoCommand
  2.  
  3. on InitVidControl me
  4.   case the VideoCommand of me of
  5.     #play:
  6.       set the movieRate of sprite the videoSprite of me to 1
  7.     #pause:
  8.       set the movieRate of sprite the videoSprite of me to 0
  9.     #stop:
  10.       set the movieRate of sprite the videoSprite of me to 0
  11.       set the movieTime of sprite the videoSprite of me to 0
  12.     #Rewind:
  13.       set the movieTime of sprite the videoSprite of me to 0
  14.   end case
  15. end
  16.  
  17. on mouseUp me
  18.   InitVidControl(me)
  19. end
  20.  
  21. on getPropertyDescriptionList
  22.   set p_list to [#VideoCommand: [#comment: "Command:", #format: #symbol, #range: [#play, #pause, #stop, #Rewind], #default: #play], #videoSprite: [#comment: "Video Sprite Channel:", #format: #integer, #default: 1]]
  23.   return p_list
  24. end
  25.  
  26. on getBehaviorDescription
  27.   return "Provides Play, Pause, Stop, or Rewind controls for a digital video sprite." & RETURN & "PARAMETERS:" & RETURN & "ΓÇó Command - Choose the video playback command to invoke ( Play, Pause, Stop, Rewind )." & RETURN & "ΓÇó Sprite - Enter the number of sprite channel in which video is displayed."
  28. end
  29.